
function interToOut() {
    let timer = null
    return new Promise((resolve, reject) => {
        timer = setInterval(() => {
            console.log('聊聊')
            //? 执行一次就清掉咯
            clearInterval(timer)
        },1000)
    })
}
interToOut()
